import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.annotation.WebServlet;

@WebServlet("/demo5")
public class ServletDemo5 extends MyHttpServlet{


    @Override
    protected void doPost(ServletRequest req, ServletResponse resp) {
        System.out.println("get.......");
    }

    @Override
    protected void doGet(ServletRequest req, ServletResponse resp) {
        System.out.println("post......");
    }
}

